export default class BaseScene extends Phaser.Scene {
    createText(x, y, content, size = 32) {
        // 添加字体加载状态检查
        const fontAvailable = this.sys.game.cache.font.has('pixel_font');
        
        const style = {
            fontSize: `${size}px`,
            color: '#8B4513',
            fontFamily: fontAvailable ? 'pixel_font' : '"Courier New", monospace',
            align: 'center'
        };
        
        return this.add.text(x, y, content, style)
            .setOrigin(0.5)
            .setPadding(10);
    }
}